package cn.itcast.consumer.clients;

import cn.itcast.consumer.pojo.User;
import org.springframework.stereotype.Component;
/**
 *Feign对HyStix的集成，实现UserClient
 * */
@Component
public class UserClientFallback implements UserClient{
    @Override
    public User queryById(Long id) {
        User user = new User();
        user.setId(id);
        user.setName("默认用户");
        return user;
    }
}
